//
//  KGeneralCommentsVC.m
//  Keping
//
//  Created by apple on 2017/11/24.
//  Copyright © 2017年 柯平. All rights reserved.
//

#import "KGeneralCommentsVC.h"

@interface KGeneralCommentsVC ()

@property (nonatomic, weak) IBOutlet UIImageView *iconView;
@property (nonatomic, weak) IBOutlet UILabel *nikeLabel;
@property (nonatomic, weak) IBOutlet UILabel *timeLabel;
@property (nonatomic, weak) IBOutlet UILabel *contentLabel;
@property (nonatomic, weak) IBOutlet UITableView *tableView;
/**底部评论框*/
@property (nonatomic, weak) IBOutlet UITextField*commentField;

@end

@implementation KGeneralCommentsVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)setBbsPostView:(KBbsPostsViews *)bbsPostView {
    if (!bbsPostView) {
        return;
    }
    
    _bbsPostView = bbsPostView;
    [self.iconView sd_setImageWithURL:[NSURL URLWithString:[KGetImageURL stringByAppendingString:bbsPostView.profile]] placeholderImage:[UIImage imageNamed:KImagePlaceholder]];
    self.nikeLabel.text = bbsPostView.realName;
    self.timeLabel.text = bbsPostView.timeTitle;
    self.contentLabel.text = bbsPostView.content;
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 0;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    return nil;
}

- (CGFloat )tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    return MAXFLOAT;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
